home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / circuits / irsim-9.000 / irsim-9 / src / include / ASSERT.h next >
C/C++ Source or Header  |  1993-01-15  |  1KB  |  29 lines

  1. /* 
  2.  *     ********************************************************************* 
  3.  *     * Copyright (C) 1988, 1990 Stanford University.                     * 
  4.  *     * Permission to use, copy, modify, and distribute this              * 
  5.  *     * software and its documentation for any purpose and without        * 
  6.  *     * fee is hereby granted, provided that the above copyright          * 
  7.  *     * notice appear in all copies.  Stanford University                 * 
  8.  *     * makes no representations about the suitability of this            * 
  9.  *     * software for any purpose.  It is provided "as is" without         * 
  10.  *     * express or implied warranty.  Export of this software outside     * 
  11.  *     * of the United States of America may require an export license.    * 
  12.  *     ********************************************************************* 
  13.  */
  14.  
  15.  
  16. #ifndef ASSERT
  17.  
  18. #ifdef DEBUG
  19.  
  20. #define ASSERT( EXP )    if( ! (EXP) )
  21.  
  22. #else
  23.  
  24. #define    ASSERT( EXP )    if( 0 )
  25.  
  26. #endif DEBUG
  27.  
  28. #endif ASSERT
  29.